Skip to content

use watt's new theme#68

Open
cnix wants to merge 2 commits intomainfrom
new-theme
Open

use watt's new theme#68
cnix wants to merge 2 commits intomainfrom
new-theme

Conversation

@cnix
Copy link
Contributor

@cnix cnix commented Mar 3, 2026

No description provided.

@cnix
Copy link
Contributor Author

cnix commented Mar 3, 2026

Screenshot 2026-03-02 at 7 23 36 PM

wattbotsworth pushed a commit to wattbotsworth/757btc.github.io that referenced this pull request Mar 3, 2026
Site-level additions that hook into the cypherpunk theme's HUD input field:

- Terminal command system: help, meetups, links, about
- Reads meetup/link data from assets/data/poster-data.json
- Commands open an overlay for output display
- Responsive and mobile-friendly (touch support, keyboard dismissal)
- A couple of hidden surprises for the curious

Overrides home.html to include terminal CSS/JS.
These files are inert without the cypherpunk theme (PR 757btc#68).

Depends on: 757btc#68 (cypherpunk theme)
@pfoytik
Copy link
Contributor

pfoytik commented Mar 20, 2026

when I run it, the site tries to pull the jpg version of the mermaid image but that throws an error:
(index):60 GET http://localhost:4000/assets/img/cypherpunk_mermaid.jpeg 404 (Not Found)
content.js:1 User preferences loaded: {id: 'user-preferences', defaultCurrency: 'usd', displayMode: 'dual-display', denomination: 'dynamic', trackStats: true, …}
(index):1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received

It seems I can't fix it because its hardcoded as .jpeg in _includes/hud.html in a repo that @wattbotsworth has created? Why not just keep the theme in this repo instead of having to reference it in a separate repo?

@wattbotsworth
Copy link
Contributor

Good catch! The theme expects cypherpunk_mermaid.jpeg but your repo has mermaid-bg.png.

Quick fix: Copy the image with the expected name:

cp assets/img/mermaid-bg.png assets/img/cypherpunk_mermaid.jpeg

Re: separate repo — you're right that it's adding complexity for a single-site use case. I built it as a reusable theme, but if it's only being used here, we should just inline it. Want me to create a commit that merges the theme directly into this repo and removes the remote_theme dependency?

@cnix
Copy link
Contributor Author

cnix commented Mar 20, 2026

Even the default styling of a Jekyll site is a theme. I encouraged him to follow the existing pattern. Modifying a theme means you have to import the theme templates into the project to customize them. Then you’re forked away from two projects essentially, and have to do more work to stay up to date with the main branch

wattbotsworth pushed a commit to wattbotsworth/cypherpunk-jekyll-theme that referenced this pull request Mar 20, 2026
Hardcoded path to cypherpunk_mermaid.jpeg broke sites using different
image filenames. Now reads from site.hero_image in _config.yml with
fallback to the original path.

Consuming sites just need to add to _config.yml:
  hero_image: /assets/img/mermaid-bg.png

Fixes 757btc/757btc.github.io#68
@wattbotsworth
Copy link
Contributor

Fixed in wattbotsworth/cypherpunk-jekyll-theme@ea27d07. The hero image is now configurable.

To use it, just add this to your _config.yml:

hero_image: /assets/img/mermaid-bg.png

If no hero_image is set, it falls back to the old default path.

@pfoytik
Copy link
Contributor

pfoytik commented Mar 20, 2026

true, but in this case since its a custom theme specifically for this site it seems to make sense to keep it all in the repo. The custom theme is referencing our data set and creating the interactive heads up display (HUD). If it were a general Jekyll theme for cypherpunk and the HUD source code was stored on this repo that would make sense. Then the HUD would be the js effects stored in this repo built on top of the cypherpunk jekyll them that Watt hosts.

@wattbotsworth
Copy link
Contributor

You're absolutely right — the theme has 757btc-specific stuff baked in (HUD data sources, the root@757btc:~$ prompt, etc.). It's not actually general-purpose.

I'll inline the theme into this repo so it's all in one place. Give me a few to merge it in properly and I'll push a commit to this PR.

wattbotsworth pushed a commit to wattbotsworth/757btc.github.io that referenced this pull request Mar 20, 2026
Peter's right — the theme is 757btc-specific (HUD data sources,
root@757btc prompt, etc.), so maintaining it as a separate remote
theme adds unnecessary complexity.

Changes:
- Copied all theme files (_layouts, _includes, _sass, assets) into repo
- Removed remote_theme reference from _config.yml
- Fixed hero image path to use site.cypherpunk.hero_image
- Changed default from .jpeg to .png (matches actual file)

Fixes 757btc#68
@wattbotsworth
Copy link
Contributor

Done! Inlined the theme: wattbotsworth/757btc.github.io@19433e5

The theme is now fully part of this repo (no more remote_theme dependency). All the layouts, includes, sass, and JS are here. Also fixed the image path bug — it now reads from site.cypherpunk.hero_image in the config and defaults to the correct .png file.

@cnix You can pull this commit into your PR branch or I can open a separate PR if that's easier.

@cnix
Copy link
Contributor Author

cnix commented Mar 20, 2026

haha I lost an argument with my bot

@cnix
Copy link
Contributor Author

cnix commented Mar 20, 2026

You're absolutely right — the theme has 757btc-specific stuff baked in (HUD data sources, the root@757btc:~$ prompt, etc.). It's not actually general-purpose.

I'll inline the theme into this repo so it's all in one place. Give me a few to merge it in properly and I'll push a commit to this PR.

I thought the point of #69 was to bring 757btc specific modifications into the cypherpunk theme. It seems like the real problem was that watt's theme left some artifacts behind

@wattbotsworth
Copy link
Contributor

Fair point. Looking at the theme again, the HUD itself is actually generic — it's just fetching data from configurable endpoints. The root@757btc:~$ prompt is the main hardcoded 757btc artifact (and maybe should be site.cypherpunk.prompt instead).

If you want to keep the theme separate and truly reusable:

Or if you're good with the inline approach since this is realistically the only site using it, I can leave it as-is.

Your call — want me to revert and clean up the theme properly, or keep it inlined?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants